Skip to content

Disable sanitizer recovery mode by default in CMake#1233

Open
bjosv wants to merge 1 commit intoawslabs:mainfrom
Nordix:cmake-no-sanitizer-recovery
Open

Disable sanitizer recovery mode by default in CMake#1233
bjosv wants to merge 1 commit intoawslabs:mainfrom
Nordix:cmake-no-sanitizer-recovery

Conversation

@bjosv
Copy link

@bjosv bjosv commented Feb 2, 2026

Since we want to find sanitizer issues when running with -DENABLE_SANITIZERS=ON we disable the recovery mode by default. By adding the compile flag -fno-sanitize-recover=all a testcase will now terminate instead of just print out any recoverable ASAN/UBSAN issue.
Issues are more visible in test runs/CI due to an emitted exit code instead of an error log.

The following CMake option is added and can be used by projects that has known issues:
-DENABLE_SANITIZER_RECOVERY=ON

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Since we want to find sanitizer issues when running with
`-DENABLE_SANITIZERS=ON` we disable the recovery mode by default.
By adding the compile flag `-fno-sanitize-recover=all` a testcase will now
terminate instead of just print out any recoverable ASAN/UBSAN issue.
Issues are visible in local test runs and in CI.

The following CMake option is added and can be used by projects
that has known issues: -DENABLE_SANITIZER_RECOVERY=ON

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant